 <{extends file="<{$tempdir}>/public/wxsite.html"}>  
  <{block name=extendcss}> 
  <link rel="stylesheet"  href="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/css/weixinlunbo.css">   
  <script src="<{$siteurl}>/js/Swiper/idangerous.swiper.js"></script>     
 <{/block}>
 <{block name=loadinghide}><{/block}>

<{block name=hearnav}><div class="toptitCon">
 <div class="toptitBox">
  <div class="toptitL"><i></i></div>
  <div class="toptitC"><h3>通知中心</h3></div>
 </div>
</div><{/block}>
 <{block name=sitetitle}><{$sitename}><{/block}>
 <{block name=blockcontent}> 
 <style>
 body{background:#fff;}
 </style> 
 

<div id="wrapper" class="swiper-containeraa" style="position:absolute;  display:none;width:100%;top:73px; overflow:hidden;">

<div id="scroller" style="transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(0px, 0px) translateZ(0px);">


 <div class="swiper-scrollbar"></div> 
<div  class="swiper-wrapper" >
<div class="swiper-slide">
<!--展示-->
<div id="uprefuBox"><p class="refuImg"><img   src="/upload/images/wmrloading.gif"  ></p><p class="refuFang flipup" >下拉刷新...</p></div>

  
 
  <div  class="homscrbusinBox">
	<ul id="shoplist">
		
	</ul>
 
</div>
 
<div  id="lodingmore"   class="downLoading "><div class="moreLoading"><i class="iconstartloading"></i><span>上拉更多...</span></div></div>
   
 
 
 
<!---------------------------------------------------------------------------首页结束----------------------------------------------------------------------------------->
 </div>
 

 </div>
</div>


</div>
<script>
var can_show = true;
 var catid = <{$typeid|default:0}>;
var order = 0;
var qsjid = 0;
var typeid = <{$typeid|default:0}>;
var myaddress = '<{$myaddress}>';
var search_input = '<{$search_input}>';
var shopshowtype  = '<{$shopshowtype}>';
var checknext = false;
var lat = '<{$lat|default:0}>';
var lng = '<{$lng|default:0}>';
var addressname = '<{$addressname|default:''}>';
var is_loading = false;
   
</script>
 </script>
<{/block}>
<{block name=myScrolljs}>
 
 
<script>
var defaultSwiper; //默认的滚动控件名 
var holdPosition = 0; 
var maxposition = 0;
var page =1;
var pageend = false;
var mainheight = $(window).height();//窗口高度
var mainwidth = $(window).width();//窗口宽度
var noticetitwidth = $(window).width()-20-90; 

$(function(){ 
loading(); 
}); 
var html5_config = {'showheader':true,'showfooter':true,'bodyscller':true,'Canfresh':true,'CanloadMore':true,'titilename':'外卖频道'}; 
function freshpage(){//刷新函数 
  page =1;
  pageend = false;
    $('#shoplist').html(''); 
	var content = htmlback(siteurl+'/index.php?ctrl=wxsite&action=ajaxnoticelist','');
  	if(content.flag == false){
 	     $('#shoplist').append(content.content);    
	}else{
	    Tmsg('xxxx');
	}  
	$('#loading').hide(); 
	hidefresh();
    //setTimeout("hidefresh()",50);  
}
function loadmore(){ 
	page = page+1;
	   var content = htmlback(siteurl+'/index.php?ctrl=wxsite&action=ajaxnoticelist',{'page':page});
		if(content.flag == false){
		$('#lodingmore .moreLoading i').addClass('iconstartloading');
	    $('#lodingmore .moreLoading i').removeClass('iconloading');
	    $('#lodingmore .moreLoading i').removeClass('iconOverload');
		$("#lodingmore span").text("上拉更多...");
		   var getmoreContent =  $.trim(content.content); 
  		   if( getmoreContent == ''  ){
 				pageend = true;
				$('#lodingmore .moreLoading i').removeClass('iconstartloading');
				$('#lodingmore .moreLoading i').removeClass('iconloading');
				$('#lodingmore .moreLoading i').addClass('iconOverload');
				$("#lodingmore span").text("加载完毕...");
		   }else{
				 $('#shoplist  ul').append(content.content);
		   }
		  
		}else{
			pageend = true;
			$('#lodingmore .moreLoading i').removeClass('iconstartloading');
			$('#lodingmore .moreLoading i').removeClass('iconloading');
	     	$('#lodingmore .moreLoading i').addClass('iconOverload');
			$("#lodingmore span").text("加载完毕...");
		}
		//  setTimeout("hideloadmore()",500);  
		hideloadmore();
	
} 
//加载页面函数
function loading(){
 	if(typeof html5_config == 'undefined'){
		alert('获取失败');
	}else{ 
	    $("#wrapper").css({'top':'42px'});
		if(html5_config.bodyscller == true){
 			 setTimeout(function(){  
				$('#wrapper').show();    
				 addfresh();
				 
			 },500);
		}
	 //	$('#loading').hide();
		//loaddata();
		
	}
} 
</script>
 
 <{/block}>